<!doctype html>
<html>
<head>
  <title>Learning jQuery</title>
  <meta charset="utf-8" />
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script type="text/javascript" src="jquery-1.11.1.min.js"></script>
  <style>    
  </style>
</head>

<body>
  <p>This is some text.</p>
  <button id="fader">Fade out.</button>
  <button id="faderIn">Fade in.</button>
  <script type="text/javascript">
    $("#fader").click(function() {
      $("p").fadeOut("slow", function() {
        alert("Fade out complete!");
      });
    });
    
    $("#faderIn").click(function() {
      $("p").fadeIn("fast");
    });
  </script>
</body>
</html>
